package com.irishud.hudnavi;

/**
 * Created by Administrator on 2016/6/22.
 */
public class NaviEvent {
    private static  int idBase = 0x100000;
    //多路径规划成功
    public  final static int MultiRoutePlanOk = newId();
    //都路径规划失败
    public  final static int MultiRoutePlanFailed = newId();
    //显示路口放大图
    public  final static int ShowCrossRoadInfo = newId();
    //隐藏路口放大图
    public  final static int HideCrossRoadInfo = newId();
    // 导航过程更新信息
    public  final static int UpdateNaviInfo = newId();
    public  final static int UpdateNaviLocationInfo = newId();
    // 开始导航
    public  final static int StartNavi = newId();
    // 停止导航/取消导航
    public  final static int StopNavi = newId();

    // 打开导航
    public  final static int OpenNavi = newId();
    // 关闭导航
    public  final static int CloseNavi = newId();

    // 超速提醒
    public  final static int WarningOverSpeedLimit = newId();

    //
    public  int id;
    public  Object eventData = null;

    public NaviEvent(int id,Object data)
    {
        this.id = id;
        this.eventData = data;
    }

    public NaviEvent(int id) {
        this.id = id;
    }

    static int newId(){
        return  ++idBase;
    }
}
